package xp2p.utils;

import java.util.Collection;
import java.util.LinkedList;

public class Finder
{
	// put this in some class
	public static <T> Collection<T> findAll(Collection<T> coll, Checker<T> chk) 
	{
	    LinkedList<T> l = new LinkedList<T>();
	    for (T obj : coll) {
	         if (chk.check(obj))
	             l.add(obj);
	    }
	    return l;
	}

}
